﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.ConfigCenter.Web.ApplicationCore.Dtos.Environment
{
    public class SaveEnvironmentInput
    {
        public int Id { get; set; }

        /// <summary>
        /// 环境变量编码
        /// </summary>
        [StringLength(50, ErrorMessage = "环境编码长度至少1位，最大长度50位", MinimumLength = 1)]
        [Required(ErrorMessage = "环境编码不能为空!")]
        public string EnvCode { get; set; }

        /// <summary>
        /// 环境变量中文名称
        /// </summary>
        [StringLength(100, ErrorMessage = "环境名称长度至少1位，最大长度100位", MinimumLength = 1)]
        [Required(ErrorMessage = "环境名称不能为空!")]
        public string EnvName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderIndex { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

      
         
    }
}
